#include <QAction>
#include "rabbitvcs_def.h"

class RabbitVcsAction : public QAction
{
    Q_OBJECT
public:
    RabbitVcsAction(RabbitVcsType vcs, const char *name, QObject *parent = nullptr);
    RabbitVcsAction(RabbitVcsType vcs, const char *name, const char *title, const char *icon = nullptr, QObject *parent = nullptr);
    ~RabbitVcsAction();

protected:
    void init();

Q_SIGNALS:
    void actionTriggered(RabbitVcsType vcs, const QString &name);

protected:
    RabbitVcsType vcs;
    QString actionName;
};
